package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel("用户")
public class User {

    @ApiModelProperty("用户id")
    int id;

    @ApiModelProperty("账号")
    String account;

    @ApiModelProperty("密码")
    String password;

    @ApiModelProperty("权限")
    String type;

    @ApiModelProperty("联系电话")
    String phone;

    @ApiModelProperty("性别")
    String sex;

    @ApiModelProperty(hidden = true)
    int status;

    @ApiModelProperty(hidden = true)
    int isdel;

    public User(String account, String password, String type) {
        this.account = account;
        this.password = password;
        this.type = type;
    }

}
